package com.tang.exception_.try_;

public class TryCatch01 {
    //编写一个main方法
    public static void main(String[] args) {
        int num1=10;
        int num2=0;
        try {
            int res = num1 / num2;
        }catch (Exception e){
            System.out.println("e = " + e);
        }
    }
}

